package se.vidsynt.buzzard;

import org.mortbay.jetty.Server;
import org.mortbay.jetty.servlet.Context;
import org.mortbay.jetty.servlet.ServletHolder;
import se.vidsynt.buzzard.servlet.BeardServlet;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        Server server = new Server(8081);
        Context root = new Context(server,"/",Context.SESSIONS);
        try {
            root.addServlet(new ServletHolder(new BeardServlet()), "/*");
            server.start();
        } catch (Exception e) {
            System.err.println("Exception caught!");
        }
    }
}
